package com.neusoft.neu24g3.myhis2.demos.cfg;

/**
 * WebConfig sedrf
 *
 * @author Administrator
 * @version 2024/05/27 16:54
 **/
import com.neusoft.neu24g3.myhis2.demos.util.MyDateStringConverter;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 注册类型转换器
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override
    public void addFormatters(FormatterRegistry registry) {
        registry.addConverter(new MyDateStringConverter());
    }
}
